package com.hundsun.cprs.yyt.gateway.service.uc.impl.channel;

import com.hundsun.cprs.yyt.gateway.response.BaseResponse;
import com.hundsun.cprs.yyt.gateway.service.uc.ClearingChannelService;
import com.hundsun.cprs.yyt.service.common.dto.FundOpenInfo;
import com.hundsun.cprs.yyt.service.common.enums.EnumChannelBankNo;
import org.apache.commons.lang.Validate;
import org.springframework.stereotype.Service;

@Service
public class ClearingShBankChannelServiceImpl implements ClearingChannelService {

    @Override
    public String getChannelBankNo() {
        return EnumChannelBankNo.SHBANK.getCode();
    }

    @Override
    public void bindingValidate(FundOpenInfo request, BaseResponse response) {
        Validate.notEmpty(request.getBankBranch(),"银行分支号必填");
    }
}
